# {{ cephadm_managed }}
global:
  scrape_interval: 10s
  evaluation_interval: 10s
rule_files:
  - /etc/prometheus/alerting/*

{% if alertmanager_sd_url %}
alerting:
  alertmanagers:
    - scheme: http
      http_sd_configs:
        - url: {{ alertmanager_sd_url }}
          tls_config:
            ca_file: root_cert.pem
{% endif %}

scrape_configs:
  - job_name: 'ceph'
    honor_labels: true
    http_sd_configs:
    - url: {{ mgr_prometheus_sd_url }}
      tls_config:
        ca_file: root_cert.pem

{% if node_exporter_sd_url %}
  - job_name: 'node'
    http_sd_configs:
    - url: {{ node_exporter_sd_url }}
      tls_config:
        ca_file: root_cert.pem
{% endif %}

{% if haproxy_sd_url %}
  - job_name: 'haproxy'
    http_sd_configs:
    - url: {{ haproxy_sd_url }}
      tls_config:
        ca_file: root_cert.pem
{% endif %}
